# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=metacity
pkgver=3.40.0
pkgrel=0
pkgdesc="Metacity is the Gtk+3-based window manager used in gnome-flashback"
url="https://wiki.gnome.org/Projects/Metacity"
arch="all"
license="GPL-2.0-or-later"
depends="zenity gsettings-desktop-schemas"
makedepends="gtk+3.0-dev glib-dev pango-dev libxcomposite-dev libcanberra-dev
	libsm-dev startup-notification-dev libxcursor-dev libgtop-dev libx11-dev
	libxinerama-dev libxrandr-dev vulkan-headers vulkan-loader-dev
	gsettings-desktop-schemas-dev libxres-dev libxpresent-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/metacity/${pkgver%.*}/metacity-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f9eeb0b08bb302c5fb0d174a4df97b253255741d507e94200820d3ebe9e89f179c9096b8e56798836fc84cbe1ac76b27fee6762f3d41373280c4726bc7cba2ff  metacity-3.40.0.tar.xz
"
